<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/content/mytags.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>任务列表</title>
		<t:resource types="jquery,lhgdialog,easyui" />
	</head>
	<body>
		<ui:datagrid name="quartzList" idField="schedName,jobName,jobGroup" action="quartz.do?datagrid" title="任务列表">
			<ui:column field="schedName" title="计划名称" sortable="false" hidden="true"/>
			<ui:column field="jobName" title="作业名称" sortable="false" query="true"/>
			<ui:column field="jobGroup"  title="作业组" sortable="false" query="true"/>
			<ui:column field="jobClazz" title="作业类" sortable="false" query="true"/>
			<ui:column field="jobDescription" title="作业描述" sortable="false"/>
			<ui:column field="cronExpression" title="时间表达式" sortable="false" hidden="true"/>
			<ui:column field="triggerState" title="触发器状态" dictionary="triggerState" sortable="false"/>
			<ui:column field="prevFireTime" title="上次执行时间" sortable="false"/>
			<ui:column field="nextFireTime" title="下次执行时间" sortable="false"/>
			<ui:column field="misFireInstr" title="失败次数" sortable="false"/>
			<ui:column field="opt" title="操作" align="center" />
			<ui:confirmOpt url="quartz.do?pause&schedName={schedName}&jobName={jobName}&jobGroup={jobGroup}" title="暂停" permiCode="system:quartz:pause" message="确定要暂停任务[{jobName}][{jobGroup}]吗？"></ui:confirmOpt>
			<ui:confirmOpt url="quartz.do?resume&schedName={schedName}&jobName={jobName}&jobGroup={jobGroup}" title="启动" permiCode="system:quartz:resume" message="确定要启动任务[{jobName}][{jobGroup}]吗？"></ui:confirmOpt>
			<ui:confirmOpt url="quartz.do?immediately&schedName={schedName}&jobName={jobName}&jobGroup={jobGroup}" title="立即执行" permiCode="system:quartz:immediately" message="确定要立即执行任务[{jobName}][{jobGroup}]吗？"></ui:confirmOpt>
			<ui:deleteOpt url="quartz.do?delete&schedName={schedName}&jobName={jobName}&jobGroup={jobGroup}" permiCode="system:quartz:delete" message="确定要删除任务[{jobName}][{jobGroup}]吗？" title="删除" />
			<ui:toolbar iconCls="add" title="新增任务" url="quartz.do?addorupdate" permiCode="system:quartz:save" funname="add" height="220px" />
			<ui:toolbar iconCls="edit" title="编辑任务" url="quartz.do?addorupdate" permiCode="system:quartz:save" funname="update" height="220px" />
		</ui:datagrid>
	</body>
</html>